Base class for all materials in the component. More...
Public Member Functions | |
| Material () | |
| virtual | ~Material () |
| nkMemory::StringView | getName () const |
| nkGraphics::Shader * | getShader () const |
| virtual MATERIAL_TYPE | getType () const =0 |
| void | setName (const nkMemory::StringView &value) |
| virtual bool | load ()=0 |
| virtual void | unload ()=0 |
Base class for all materials in the component.
This class offers basic information and the general interface to access them. Materials are designed to be inter-operable with the nkGraphics::Entity class. As such, the shader created by a material is usable directly on an entity.
| nkAstraeus::Material::Material | ( | ) |
Constructor.
|
virtual |
Destructor.
| nkMemory::StringView nkAstraeus::Material::getName | ( | ) | const |
| nkGraphics::Shader* nkAstraeus::Material::getShader | ( | ) | const |
|
pure virtual |
Implemented in nkAstraeus::PbsMaterial.
| void nkAstraeus::Material::setName | ( | const nkMemory::StringView & | value | ) |
Sets the name of the material.
| value | The name to set. |
|
pure virtual |
Loads the material and make it ready for rendering.
Implemented in nkAstraeus::PbsMaterial.
|
pure virtual |
Unloads the material and its internal memory. After that, the material is unusable for rendering.
Implemented in nkAstraeus::PbsMaterial.